package com.example.demo.controller


import com.example.demo.service.CommonService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/test")
 class  TestController{
@Autowired
private  lateinit var  services: CommonService
        @RequestMapping("/first")
        fun firstTest():String{
          return  services.findAll().toString();
        }

}